import Vue from 'vue';
import App from './App';
import store from './store'
Vue.prototype.$store = store;
// 弹出框
import DialogBox from './components/DialogBox/DialogBox';

// 公共方法
import request from './utils/request.js'
Vue.prototype.$H = request;
// config配置文件
import config from './utils/config.js';  
Vue.prototype.$c = config;

// 公共方法
import fun from './utils/function.js';  
Vue.prototype.$f = fun;

import share from './utils/share.js'
Vue.mixin(share)
import uView from "uview-ui";


Vue.use(uView);
Vue.config.productionTip = false

// 全局组件
Vue.component('DialogBox', DialogBox);
//mescroll
// import MescrollBody from "@/components/mescroll-uni/mescroll-body.vue"
// import MescrollUni from "@/components/mescroll-uni/mescroll-uni.vue"
// Vue.component('mescroll-body', MescrollBody)
// Vue.component('mescroll-uni', MescrollUni)
import {VueJsonp} from "vue-jsonp"
Vue.use(VueJsonp)

App.mpType = 'app'

const app = new Vue({
    ...App
})
app.$mount()
// http接口API抽离，免于写url或者一些固定的参数
import httpApi from './utils/api.js'
Vue.use(httpApi, app)

import shareget from "@/utils/shareget";
Vue.mixin(shareget)